<?php
	include 'php/config.php';
	session_start();
	if (isset($_SESSION["id_utente"])) {
		header("Location: " . $ISSUER_HOST);
		exit();
	}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="js/utils.js"></script>
<script src="js/login.js"></script>
<title>OpenBadges Login Utente</title>
</head>
<body>
<h1>OpenBadges Login Utente</h1>
<div id="message"></div>
<form method="post">
<table border="0">
	<tr>
		<td><label>Username</label></td>
		<td><input id="username" name="username" type="text" maxLength="70" /></td>
		<td id="userMsg"></td>
	</tr>
	<tr>
		<td><label>Password</label></td>
		<td><input id="password" name="password" type="password" maxLength="70"/></td>
		<td id="pswMsg"></td>
	</tr>
</table>
<input id="login" type="button" value="Accedi" onclick="validateLoginForm()" />
</form>
<div>
	<p>Torna alla <a href="index.html">Home</a></p>
</div>
</body>
</html>